package string;

/**
 * @Author Klys
 * @Date 2023/3/5 14:48
 * @Description
 * @Version 1.0
 */
public class DemoEq {
    public static void main(String[] args) {
        String s1 = "klys";
        String s2 = "klys";
        if (s1 == s2) {
            System.out.println(true);
        } else {
            System.out.println(false);
        }
        if (s1.equals(s2)) {
            System.out.println(true);
        } else {
            System.out.println(false);
        }

        System.out.println("s1:" + s1.hashCode() + "   " + "s2:" + s2.hashCode());


    }
}
